import request from "@/utils/request";

// 查询设备维修列表
export function listSbwx(query) {
  return request({
    url: "/equipment/repair/list",
    method: "get",
    params: query,
  });
}

// 查询设备维修详细
export function getSbwx(ids) {
  return request({
    url: "/equipment/repair/" + ids,
    method: "get",
  });
}

// 新增设备维修
export function addSbwx(data) {
  return request({
    url: "/equipment/repair",
    method: "post",
    data: data,
  });
}

// 修改设备维修
export function updateSbwx(data) {
  return request({
    url: "/equipment/repair",
    method: "put",
    data: data,
  });
}
// 执行设备维修
export function zxSbwx(data) {
  return request({
    url: "/equipment/repair/executeRepair",
    method: "put",
    data: data,
  });
}
// 删除设备维修
export function delSbwx(ids) {
  return request({
    url: "/equipment/repair/" + ids,
    method: "delete",
  });
}
// 删除图片
export function delImgs(data) {
  return request({
    url: "/system/upload/delete",
    method: "post",
    data,
  });
}
